﻿@import "../../base/fn";

.weui_cell {
    // onepx
    position: relative;
    &:before {
        @include setTopLine($weuiCellBorderColor);
        left: $weuiCellGapH;
    }
    &:first-child {
        &:before {
            display: none;
        }
    }
    &_time {
        .weui_cell_bd {
            span {
                color: $globalDescColor;
            }
        }
    }
}
.weui_cells {
    background-color: $weuiCellBg;
    line-height: $weuiCellLineHeight;
    font-size: $weuiCellFontSize; //cell中间有效高度23px，跟客户端默认图标尺寸一致

    overflow: hidden; //因为每个cell的border使用before元素left搞的，ie下伪元素的containing block估计跟标准不同，在cell上用oh不生效

    
    // onepx
    position: relative;
    &:before {
        @include setTopLine($weuiCellBorderColor);
    }
    &:after {
        @include setBottomLine($weuiCellBorderColor);
    }
}

.weui_cells_title {
    margin-top: 20px / $ppr;
    margin-bottom: 10px / $ppr;
    padding-left: $weuiCellGapH;
    padding-right: $weuiCellGapH;
    color: #000;
    font-size: $weuiCellTipsFontSize;

    &+.weui_cells{
        margin-top: 0;
    }
}

.weui_cells_tips{
    margin-top: .3em; // 8px - 行高
    color: $globalTextColor;
    text-align: center;
    font-size: $weuiCellTipsFontSize;
}

.weui_cell {
    padding: $weuiCellGapV $weuiCellGapH;
    display: block; //这个是为了兼容语义化(li)与实现(table-cell)的冲突
    position: relative; //这个是为了兼容cells容器onepx方案被before挡住而做的
}

.weui_cell_hd, .weui_cell_bd, .weui_cell_ft {
    display: table-cell;
    vertical-align: middle;
    word-wrap: break-word;
    word-break: break-all;
    white-space: nowrap;
}

.weui_cell_ft {
    text-align:right;
    color: $globalTextColor;
}

.weui_cell_primary {
    width: 2000px;
    white-space: normal;
}
